package com.pzr.soccer.match.model;

import com.pzr.soccer.match.domain.Game;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
@Slf4j
public class GameWrapper implements Serializable {
    public static  final int Game_Cycle_NotStartYet=0;
    public static  final int Game_Cycle_Going=1;
    public static  final int Game_Cycle_ended=2;
    public static  final int Game_Cycle_outdated=3;


    public static  final int Game_Stage_FirstHalf=10;
    public static  final int Game_Stage_MiddleRest=20;
    public static  final int Game_Stage_SecondHalf=30;

    private String id;
    private Game game;
    private int currentMin;
    private int currentMin_revised;
    private String currentTimeStr;

    /**
     * 包裹的game 状态 first half 1, middle rest 0, second half 2
     */
    private int gameStage=Game_Stage_FirstHalf;

    /*
      wrap状态: 0未开始 ，1 正在进行 ， 2 已结束  ，3 已过时（离开始超过8小时）
     */
    private int gameCycle=Game_Cycle_NotStartYet;

    private boolean isNew;

    /*
     有改变的数据，向前端发送
     */
    private Map<String,Object> changedMap=new HashMap<>();

}
